package com.example.mycityapp.util;

public class StringReplacer {
	public static String Encode(String s)
	{
		String x = s.replace(" ", "%20");
		x = x.replace("#", "%23");
		x = x.replace(".", "%2E");
		x = x.replace("|", "%7C");
		return x;
	}
	public static String Decode(String s)
	{
		String x = s.replace("%20", " ");
		x = x.replace("%23", "#");
		x = x.replace("%2E", ".");
		x = x.replace("%7C", "|");
		return x;
	}
}
